﻿using System.Web.Mvc;

namespace Drill.Web.Mvc.Tests.TestHelpers
{
	public class MockControllerFactory : DefaultControllerFactory
	{
		public override IController CreateController(System.Web.Routing.RequestContext requestContext, string controllerName)
		{
			return
				controllerName == "MySecondTest"
					? new MySecondTestController()
					: null;
		}
	}
}